Ext.define('Skood.store.UserJsonStore',{
	extend:'Ext.data.Store',
	requires:['Skood.data.proxy.MyAjax'],
	model:'Skood.model.UserModel',
	//autoLoad:true,//自动加载，在打开视图之前就加载了
	pageSize:16,
	//是否在服务端排序 
    remoteSort: true, 
	proxy:{
		//type:'ajax',
		type:'myAjax',
		url:'/security/doJsonUserListUserAction.do',
		reader:{
			type:'json',
			root:'rows',
			totalProperty:'total',
			successProperty:'success'
		}
	},
	sorters: [{
         property: 'name',
         direction: 'DESC'
	     }, {
	         property: 'nickName',
	         direction: 'ASC'
	     }
	]
});